package com.yunhe.rentcars.pro.entity.rent;

import com.yunhe.rentcars.pro.entity.client.ClientUser;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class CarOrder {

    private  Long id; // 主键

    private String orderid; // 订单编号

    private Long carid;  // 车辆编号

    private Long clientid; // 客户编号

    private Double shouldrent; // 租赁费用

    private Double shouldbasic; // 基本保险

    private Double shoulddeposit; // 车辆押金

    private Double shouldillegal; // 违章押金

    private Double shouldtimout; // 超时费用

    private Double shouldtotal; // 订单总额

    private Double realdiscount; // 租赁折扣

    private Double realrent; // 租赁费用：实收

    private Double realbasic; // 实际保险：实收

    private Double realdeposit; // 车辆押金：实收

    private Double realillegal;// 违章押金：实收

    private Double realtotal;// 实际总额：实收

    private Double returntimeout; // 扣除超时：还车实收

    private Double returndamage; // 扣除车损：还车实收

    private Double returnillegal; // 扣除违章：还车实收

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date readybttime; // 取车时间

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date readettime; // 还车时间

    private String btrentdept; // 取车门店

    private String etrentdept; // 还车门店

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date realbttime; // 取车时间：实际

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date realettime; // 还车时间：实际

    private Double realbtoil; // 取车油量：实际

    private Double realetoil; // 还车油量：实际

    private Double realbtmile; // 取车里程：实际

    private Double realetmile;// 还车里程：实际

    private Integer payway; //支付方式  1、信用卡，2、银行卡，3、支付宝，4、微信，5、现金

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date paytime; // 支付时间

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addtime; // 订单时间

    private Integer orderstate; // 订单状态  1未缴费、2已缴费、租赁中、3.还车审核中 4.已还车     订单状态为已还车状态后，7天之后，系统自动提醒操作员需退给客户车辆押金


    private String mobile;//客户手机

    private String name;//客户姓名

    private String carcode;  // 车牌号码

    private String carbrand;  // 车辆品牌

    private Cars cars;

    private ClientUser clientUser;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public Long getCarid() {
        return carid;
    }

    public void setCarid(Long carid) {
        this.carid = carid;
    }

    public Long getClientid() {
        return clientid;
    }

    public void setClientid(Long clientid) {
        this.clientid = clientid;
    }

    public Double getShouldrent() {
        return shouldrent;
    }

    public void setShouldrent(Double shouldrent) {
        this.shouldrent = shouldrent;
    }

    public Double getShouldbasic() {
        return shouldbasic;
    }

    public void setShouldbasic(Double shouldbasic) {
        this.shouldbasic = shouldbasic;
    }

    public Double getShoulddeposit() {
        return shoulddeposit;
    }

    public void setShoulddeposit(Double shoulddeposit) {
        this.shoulddeposit = shoulddeposit;
    }

    public Double getShouldillegal() {
        return shouldillegal;
    }

    public void setShouldillegal(Double shouldillegal) {
        this.shouldillegal = shouldillegal;
    }

    public Double getShouldtimout() {
        return shouldtimout;
    }

    public void setShouldtimout(Double shouldtimout) {
        this.shouldtimout = shouldtimout;
    }

    public Double getShouldtotal() {
        return shouldtotal;
    }

    public void setShouldtotal(Double shouldtotal) {
        this.shouldtotal = shouldtotal;
    }

    public Double getRealdiscount() {
        return realdiscount;
    }

    public void setRealdiscount(Double realdiscount) {
        this.realdiscount = realdiscount;
    }

    public Double getRealrent() {
        return realrent;
    }

    public void setRealrent(Double realrent) {
        this.realrent = realrent;
    }

    public Double getRealbasic() {
        return realbasic;
    }

    public void setRealbasic(Double realbasic) {
        this.realbasic = realbasic;
    }

    public Double getRealdeposit() {
        return realdeposit;
    }

    public void setRealdeposit(Double realdeposit) {
        this.realdeposit = realdeposit;
    }

    public Double getRealillegal() {
        return realillegal;
    }

    public void setRealillegal(Double realillegal) {
        this.realillegal = realillegal;
    }

    public Double getRealtotal() {
        return realtotal;
    }

    public void setRealtotal(Double realtotal) {
        this.realtotal = realtotal;
    }

    public Double getReturntimeout() {
        return returntimeout;
    }

    public void setReturntimeout(Double returntimeout) {
        this.returntimeout = returntimeout;
    }

    public Double getReturndamage() {
        return returndamage;
    }

    public void setReturndamage(Double returndamage) {
        this.returndamage = returndamage;
    }

    public Double getReturnillegal() {
        return returnillegal;
    }

    public void setReturnillegal(Double returnillegal) {
        this.returnillegal = returnillegal;
    }

    public Date getReadybttime() {
        return readybttime;
    }

    public void setReadybttime(Date readybttime) {
        this.readybttime = readybttime;
    }

    public Date getReadettime() {
        return readettime;
    }

    public void setReadettime(Date readettime) {
        this.readettime = readettime;
    }

    public String getBtrentdept() {
        return btrentdept;
    }

    public void setBtrentdept(String btrentdept) {
        this.btrentdept = btrentdept;
    }

    public String getEtrentdept() {
        return etrentdept;
    }

    public void setEtrentdept(String etrentdept) {
        this.etrentdept = etrentdept;
    }

    public Date getRealbttime() {
        return realbttime;
    }

    public void setRealbttime(Date realbttime) {
        this.realbttime = realbttime;
    }

    public Date getRealettime() {
        return realettime;
    }

    public void setRealettime(Date realettime) {
        this.realettime = realettime;
    }

    public Double getRealbtoil() {
        return realbtoil;
    }

    public void setRealbtoil(Double realbtoil) {
        this.realbtoil = realbtoil;
    }

    public Double getRealetoil() {
        return realetoil;
    }

    public void setRealetoil(Double realetoil) {
        this.realetoil = realetoil;
    }

    public Double getRealbtmile() {
        return realbtmile;
    }

    public void setRealbtmile(Double realbtmile) {
        this.realbtmile = realbtmile;
    }

    public Double getRealetmile() {
        return realetmile;
    }

    public void setRealetmile(Double realetmile) {
        this.realetmile = realetmile;
    }

    public Integer getPayway() {
        return payway;
    }

    public void setPayway(Integer payway) {
        this.payway = payway;
    }

    public Date getPaytime() {
        return paytime;
    }

    public void setPaytime(Date paytime) {
        this.paytime = paytime;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Integer getOrderstate() {
        return orderstate;
    }

    public void setOrderstate(Integer orderstate) {
        this.orderstate = orderstate;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCarcode() {
        return carcode;
    }

    public void setCarcode(String carcode) {
        this.carcode = carcode;
    }

    public String getCarbrand() {
        return carbrand;
    }

    public void setCarbrand(String carbrand) {
        this.carbrand = carbrand;
    }

    public Cars getCars() {
        return cars;
    }

    public void setCars(Cars cars) {
        this.cars = cars;
    }

    public ClientUser getClientUser() {
        return clientUser;
    }

    public void setClientUser(ClientUser clientUser) {
        this.clientUser = clientUser;
    }
}